package com.keyingbo.leran.pattern.factorypattern.absfactory;


import com.keyingbo.leran.pattern.factorypattern.Aodi;
import com.keyingbo.leran.pattern.factorypattern.Baoma;
import com.keyingbo.leran.pattern.factorypattern.Benchi;
import com.keyingbo.leran.pattern.factorypattern.Cat;

public class CanFlyCatFactory implements CatFactory {

    @Override
    public Cat createAodi() {
        System.out.println("生产会飞的奥迪");
        return new Aodi();
    }

    @Override
    public Cat createBenchi() {
        System.out.println("生产会飞的奔驰");
        return new Benchi();
    }

    @Override
    public Cat createBaoma() {
        System.out.println("生产会飞的宝马");
        return new Baoma();
    }
}
